package org.luxor.cloud.authentication.controller;

import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import springfox.documentation.annotations.ApiIgnore;

/**
 * 基础服务
 *
 * @author Mr.Yan  @date: 2020/9/8
 */
@Controller
public class DefaultController {

    @ApiIgnore
    @GetMapping("/")
    @ApiOperation(value = "欢迎页")
    public String index() {
        return "index";
    }

    @ApiIgnore
    @GetMapping("/error")
    @ApiOperation(value = "错误页")
    public String error() {
        return "error";
    }

}
